import { BlockEnum } from '@/components/workflow/types'
import { generateUUID } from '@/utils'
import { ALL_COMPLETION_AVAILABLE_BLOCKS } from '../../constants'
import { VarUpdateNodeType } from './types'

export const getVarUpdateDefaultParams = () => {
  return {
    inputList: [
      {
        type: 'cite',
        label: '输入文本',
        variable: '',
        required: true,
        value: '',
      }
    ]
  }
}

export default {
  getAvailablePrevNodes() {
    const nodes = ALL_COMPLETION_AVAILABLE_BLOCKS.filter(type => type !== BlockEnum.End)
    return nodes
  },
  getAvailableNextNodes() {
    const nodes = ALL_COMPLETION_AVAILABLE_BLOCKS
    return nodes
  },
  checkValid: (payload: VarUpdateNodeType) => {
    return true
  }
}